A Test-case Generation Method for Concurrent Programs Including Task-types
نویسندگان
چکیده
A task-type in concurrent programs is a template of task-instances which are dynamically generated in execution of the programs. The number of the generated taskinstances may not be statically determined. Therefore, test-cases generated by our previously proposed method may not be realized in execution of the programs. This paper proposes an enhanced test-case generation method. Concurrent programs are classified into four kinds under two viewpoints: whether the number of taskinstances generated from a task-type can be determined statically or dynamically, and whether or not the taskinstances communicate with each other. The enhanced method uses a modified Event InterActions Graph(EIAG). The EIAG consists of Event Graphs and Interactions. An Event Graph is an abstract control flow graph of a program unit. The Interactions represent interactions between the units. Because the modified EIAG represents more accurate behavior of a program than the EIAG does, test-cases generated by the enhanced method increase the possibility of realizing themselves. The test-cases in the method increase in number. The method, however, is practical in the sense that the number of task-instances generated from a task-type is restricted.
منابع مشابه
A Comparative Study on Test Case Generation of Concurrent Programs
This paper deals with a comparative study on testing of concurrent programs based on different techniques. The various challenges in testing concurrent programming are: defining test coverage criteria based on control flow, generating control flow graph of nondeterministic programs, investigating the applicability of sequential testing criteria to parallel program testing etc. For solving these...
متن کاملTest Generation for Concurrent Programs Modeled by Communicating Nondeterministic Finite State Machines1
We present a method of generating test cases for concurrent programs. The specifications of concurrent programs are modeled by a set of communicating nondeterministic finite state machines (CNFSMs), where the CNFSM model is a simplified model derived from CCITT SDL. A conformance relation, called trace-equivalence, is defined under this model, which serves as a guide to test generation. A test ...
متن کاملApplication of Demand Response Programs to Heavy Industries: a Case Study on a Regional Electric Company
In recent years, incremental rate of electrical demands made many challenges for policy makers of power systems. Besides, due to economic crisis and environmental concerns about the air pollution, the new investments in thermal power generation units have experienced a noticeable reduction. For this reason, the power system operators should propose novel approaches to make a balance between inc...
متن کاملReachability Graph-Based Test Sequence Generation for Concurrent Programs
One common approach to test sequence generation for structurally testing concurrent programs involves constructing a reachability graph (RG) and selecting a set of paths from the graph to satisfy some coverage criterion. It is often suggested that test sequence generation methods for testing sequential programs based on a control flow graph (CFG) can also be used to select paths from an RG for ...
متن کاملTowards Testing Concurrent Objects in CLP
Testing is a vital part of the software development process. It is even more so in the context of concurrent languages, since due to undesired task interleavings and to unexpected behaviours of the underlying task scheduler, errors can go easily undetected. This paper studies the extension of the CLP-based framework for glass-box test data generation of sequential programs to the context of con...
متن کامل